usb: hub: Send correct wValue to get hub descriptor of a USB 3.0 hub
authorBin Meng <[email protected]>
Wed, 19 Jul 2017 13:49:58 +0000 (21:49 +0800)
committerMarek Vasut <[email protected]>
Fri, 28 Jul 2017 21:34:18 +0000 (23:34 +0200)
commitf34211960214290d8b38dab2fbdfb18f07582f45
treefcb91f8c117a19dab8b140bd7ee314099bc1f56d
parentf7a9e5dd03f83cf31a85eadf8666939abe47b739
usb: hub: Send correct wValue to get hub descriptor of a USB 3.0 hub

Testing a USB 3.0 hub by connecting it to the xHCI port on Intel
MinnowMax, when issuing 'get hub descriptor' to the hub, xHCI
reports a transfer event TRB with a completion code 6 which means
'Stall Error'.

In fact super speed USB hub descriptor type is 0x2a, not 0x29.
Sending correct SETUP packet to the hub makes it not stall anymore.

Signed-off-by: Bin Meng <[email protected]>
Reviewed-by: Simon Glass <[email protected]>
Reviewed-by: Stefan Roese <[email protected]>
Tested-by: Stefan Roese <[email protected]>
common/usb_hub.c
drivers/usb/host/xhci.c
include/usb_defs.h